package com.mmall.dao;

import com.mmall.pojo.SysAcl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAclMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysAcl record);

    int insertSelective(SysAcl record);

    SysAcl selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysAcl record);

    int updateByPrimaryKey(SysAcl record);

    int countByNameAndAclModule(@Param("aclModuleId") Integer aclModuleId, @Param("aclName") String aclName, @Param("aclId") Integer aclId);

    List<SysAcl> getAclListByAclModuleId(@Param("aclModuleId") Integer aclModuleId);

    List<SysAcl> getAll();

    List<SysAcl> getByIdList(@Param("aclIdList") List<Integer> aclIdList);

    int countByAclModuleId(@Param("aclModuleId") Integer id);

    List<SysAcl> getByUrl(@Param("url") String url);
}